package org.tea.inventory.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.tea.inventory.base.validation.groups.CreateGroup;
import org.tea.inventory.base.validation.groups.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author hanzy
 * @description
 * @date 2023年08月11日 14:55
 */
@Data
public class BaseActDto {
    /**
     * 活动
     */
    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    private Long actId;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空", groups = {CreateGroup.class})
    private String title;

    @ApiModelProperty(value = "分类")
    private String category;


    @ApiModelProperty(value = "类型")
    @NotBlank(message = "活动类型不能为空")
    private String type;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    @NotBlank(message = "图片不能为空", groups = {CreateGroup.class})
    private String imgUrl;

    private List<String> participants;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String content;

    //改版时
    @ApiModelProperty(value = "活动位置：1-首页")
    private Integer actPosition; // banenr位置：1-首页

    @ApiModelProperty(value = "侧面图片")
    protected String sideImgUrl;

    //中秋时
    @ApiModelProperty(value = "开奖cron表达式")
    protected String winningTimeCron;

    /**
     * 扣除积分
     */
    @ApiModelProperty(value = "扣除积分")
    private Long expenseIntegral;

    @ApiModelProperty(value = "是否限制")
    private Integer isLimit;

    @ApiModelProperty(value = "首页活动排序")
    private Integer positionSort;

}
